package com.betterwood.dragon.dao;

import com.betterwood.dragon.dao.enhances.UserMongoRepository;
import com.betterwood.dragon.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zhengyanhua
 * @create 2021-03-18 13:52
 */
@Repository
public interface UserDao extends MongoRepository<User, String>, UserMongoRepository {

    User getByMinappOpenId(String minAppOpenId);

    User findByPhone(String phone);

    List<User> findByUserStatus(Integer userStatus);
}
